import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const WORKBENCH: AppRouteRecordRaw = {
  path: '/workbench',
  name: 'Workbench',
  component: DEFAULT_LAYOUT,
  meta: {
    title: '工作台',
    icon: 'icon-desktop',
    requiresAuth: true,
    order: 0,
  },
  children: [
    {
      path: 'dashboard',
      name: 'Dashboard',
      component: () => import('@/views/workbench/dashboard/index.vue'),
      meta: {
        title: '数据看板',
        icon: 'icon-dashboard',
        requiresAuth: true,
        activeMenu: 'Workbench',
      },
    },
  ],
};

export default WORKBENCH;
